
cc.Class({
    extends: cc.Component,

    properties: {
        cd: cc.ProgressBar,
        flag: cc.Label, 
    },


    update (dt) {
        var dis = 1/20;
        dis *= dt;
        this.cd.progress -= dis;

        if(this.cd.progress <= 0){

            //子弹发射数量还原.
            if(this.flag.string == 1001){
                data.bulletNum = 3
            }

            if(this.flag.string == 1002){
                data.buttetType = 0
                data.buttetAck = 1
                cc.log("子弹还原："+  data.buttetType)
            }

            game.playing.skillProgress.getComponent("skillProgress").delProgress(this.node)
        }
    },
});
